package com.ruoyi.boc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boc.mapper.PhPerformanceRankingPCMapper;
import com.ruoyi.boc.domain.PhPerformanceRankingPC;
import com.ruoyi.boc.service.IPhPerformanceRankingPCService;

/**
 * 个人业绩排名Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-28
 */
@Service
public class PhPerformanceRankingPCServiceImpl implements IPhPerformanceRankingPCService 
{
    @Autowired
    private PhPerformanceRankingPCMapper phPerformanceRankingPCMapper;

    /**
     * 查询个人业绩排名
     * 
     * @param dateId 个人业绩排名主键
     * @return 个人业绩排名
     */
    @Override
    public PhPerformanceRankingPC selectPhPerformanceRankingPCByDateId(String dateId)
    {
        return phPerformanceRankingPCMapper.selectPhPerformanceRankingPCByDateId(dateId);
    }

    /**
     * 查询个人业绩排名列表
     * 
     * @param phPerformanceRankingPC 个人业绩排名
     * @return 个人业绩排名
     */
    @Override
    public List<PhPerformanceRankingPC> selectPhPerformanceRankingPCList(PhPerformanceRankingPC phPerformanceRankingPC)
    {
        return phPerformanceRankingPCMapper.selectPhPerformanceRankingPCList(phPerformanceRankingPC);
    }

    /**
     * 新增个人业绩排名
     * 
     * @param phPerformanceRankingPC 个人业绩排名
     * @return 结果
     */
    @Override
    public int insertPhPerformanceRankingPC(PhPerformanceRankingPC phPerformanceRankingPC)
    {
        return phPerformanceRankingPCMapper.insertPhPerformanceRankingPC(phPerformanceRankingPC);
    }

    /**
     * 修改个人业绩排名
     * 
     * @param phPerformanceRankingPC 个人业绩排名
     * @return 结果
     */
    @Override
    public int updatePhPerformanceRankingPC(PhPerformanceRankingPC phPerformanceRankingPC)
    {
        return phPerformanceRankingPCMapper.updatePhPerformanceRankingPC(phPerformanceRankingPC);
    }

    /**
     * 批量删除个人业绩排名
     * 
     * @param dateIds 需要删除的个人业绩排名主键
     * @return 结果
     */
    @Override
    public int deletePhPerformanceRankingPCByDateIds(String[] dateIds)
    {
        return phPerformanceRankingPCMapper.deletePhPerformanceRankingPCByDateIds(dateIds);
    }

    /**
     * 删除个人业绩排名信息
     * 
     * @param dateId 个人业绩排名主键
     * @return 结果
     */
    @Override
    public int deletePhPerformanceRankingPCByDateId(String dateId)
    {
        return phPerformanceRankingPCMapper.deletePhPerformanceRankingPCByDateId(dateId);
    }
}
